<include file="Public:header" />
<div class="container main">
    <include file="Public:left" />
    <div class="w790">
        <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{ 
			return false;
		}
	}
	//删除图组图片
	function mdel_img(path){
		$('#img_list div img').each(function(index, element) {
			$.post("{:U('delImgBypath')}",{'path':path},function(data){
				if(data=='OK'){
					
					$('#img_list div').each(function(index, element) {
                        if($(this).attr('url')==path){
							$(this).remove();
						}
                    });
					
					$('#picmsg input').each(function(index, element) {
                        if($(this).val()==path){
							$(this).remove();
						}
                    });
				}
			});
		});
	}
	
  </script>
        <div class="h">
            <a href="{:U('index')}" class="btn btn-info">
                <i class="glyphicon glyphicon-circle-arrow-left"></i> 返回员工列表
            </a>
        </div>
        <form class="checkoutform2 form-horizontal" action="{:U('update')}" method="post">
            <input type="hidden" name="id" value="{$info.id}" />
            <div class="container">
                <div class="form-group">
                    <label class="col-sm-2 control-label">昵称</label>
                    <div class="col-sm-10">
                        {$info.nickname}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">名称</label>
                    <div class="col-sm-10">
                        <input name="name" class="form-control" id="name" type="text" value="{$info.name}"/>
                    </div>
                </div>
               
               
                <div class="form-group">
                  <label class="col-sm-2 control-label">入职日期</label>
                  <div class="col-sm-10">
                     <input class="form-control" value="{:date('Y-m-d', $info['reg_time'])}" name="reg_time" type="text" placeholder="入职日期">
                  </div>
               </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">修改密码</label>
                    <div class="col-sm-10">
                        <input name="password" class="form-control" min="6" maxlength="12" id="password" type="password"/>
                    </div>
                </div>
            
            
                <div class="form-group">
                    <label class="col-sm-2 control-label">所属组</label>
                    <div class="col-sm-10">
                    
                    
                    
                    
                    
                    
                    <volist name="role_list" id="vo">
      <?php $deep = $role_list[$key - 1]['cl']; if($deep != $vo['cl']){?><br>
<?php }?>
         <label class="checkbox-inline" style=""> <input <?php if(in_array($vo['id'], $member_role_userids)){?>checked<?php }?> type="checkbox" name="role_id[]" value="{$vo.id}" id="is_nav_2" />
          {$vo.title}</label>
           </volist>
                    
                    
                    
                    
                    
                    
                    
                  
                    </div>
                </div>
                
                
                
                
                
                
                
                
                
                
                <div class="form-group">
                    <label class="col-sm-2 control-label">积分操作权限</label>
                    <div class="col-sm-10">
                    
                    
                    
                    <div class="col-sm-10">
                        每月分配：<input name="assigned" class="form-control" id="assigned" type="text" value="{$info.assigned}"/>
                        
                        
                        每月扣除：<input name="deductions" class="form-control" id="deductions" type="text" value="{$info.deductions}"/>
                    </div>
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                  
                    </div>
                </div>
                
                
                
                
                
                
                
                
                
                
                
                
                
                <div class="form-group">
                    <label class="col-sm-2 control-label">所属职位</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="position_id" size="10" id="position_id">
                            <option value="">请选择你的职位</option>
                            <volist name="position_list" id="vo">
                                <option <eq name="vo['id']" value="$info['id']">selected="selected"</eq>value="{$vo.id}">
                                	{$vo.name}
                                </option>
                            </volist>
                        </select>
                    </div>
                </div>
            
            
            
                <div class="pages">
                    <button type="submit" class="btn btn-success">保存</button>
                </div>
            </div>
        </form>
    </div>
    <div class="clear">
    </div>
</div> 
<include file="Public:footer" />